package com.github.shiqiyue.app.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.github.shiqiyue.app.common.entity.BaseEntity;
import com.github.shiqiyue.app.common.enums.DeletedEnum;
import lombok.Data;
import com.github.shiqiyue.app.common.entity.BaseEntityDict;

/**
 * <p>
 *
 * </p>
 *
 * @author wenyao.wu
 * @since 2020-10-26
 */
@Data
@TableName("sys_department")
public class Department extends BaseEntity {
    private static final long serialVersionUID = 1L;


    public static class Dict extends BaseEntityDict {

        /**
         * 数据库字段-部门名称
         */
        public static final String NAME = "name";

        /**
         * 数据库字段-上级部门ID
         */
        public static final String PID = "pid";

        /**
         * 数据库字段-是否被删除
         */
        public static final String IS_DELETED = "is_deleted";

    }

    /**
     * 部门名称
     */
    private String name;

    /**
     * 上级部门ID
     */
    private Long pid;

    /**
     * 是否被删除
     */
    @TableLogic
    private DeletedEnum isDeleted;


}
